package com.wenwen.social.application.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class MessageDTO {

	private Long Id;

	private UserDTO user;
	@NotNull(message = "content不能为空")
	@Length(message = "最大长度为300")
	private String content;

	private Long time;

	//0.失效  1.正常
	private Integer status;

	//1.文本 2.图片 3.视频
	private Integer type;

	private MediasDTO medias;

}
